<?php

class mailActions extends sfActions
{
	public function executeSendActivation()
	{
		$mail = new sfEmail();

		$mail->setCharset('utf-8');
		$mail->setSubject(sfconfig::get('app_activation_subject'));
		$mail->setSender(sfconfig::get('app_activation_sender'));
		$mail->setFrom(sfconfig::get('app_activation_from'));
		$mail->addReplyTo(sfconfig::get('app_activation_from'));
		$to = $this->getRequestParameter('firstname') . ' ' . $this->getRequestParameter('lastname')  . ' <' . $this->getRequestParameter('email') . '>';
		$mail->addAddresses($to);

		$this->login = $this->getRequestParameter('loginname');
		$this->mail = $mail;
	}
}